//
//  SSTempViewController.swift
//  SSSina
//
//  Created by ss on 2017/6/29.
//  Copyright © 2017年 ss. All rights reserved.
//

import UIKit

class SSTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    // 监听方法
    @objc private func pushClick(){
        let tempVc = SSTempViewController()
        navigationController?.pushViewController(tempVc, animated: true)
    }
    
    private func setupUI(){
        view.backgroundColor = UIColor.white
        setupNav()
    }
    
    private func setupNav(){
        // title
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
        // 右侧
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: nil, title: "PUSH", target: self, action: #selector(pushClick))
    }

}
